package com.yj.timecapsule.mapper;

import com.yj.timecapsule.entity.user.FriendRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendRequestMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FriendRequest record);

    int insertSelective(FriendRequest record);

    FriendRequest selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FriendRequest record);

    int updateByPrimaryKey(FriendRequest record);

    List<FriendRequest> selectByReceiverIdWithPending(@Param("id") Long id);


    void updateBySenderIdAndReceiverId(FriendRequest friendRequest);
}